import 'package:riki_router/event/riki_event_type.dart';

import 'abs_package.dart';

class Demo1Package extends AbsPackage {
  @override
  void onRikiEvent(RikiEventType type, arguments,callback) {
    print('$packageName接收到$type事件，参数为：$arguments');
    if (type.value == 'test1') {
      fire(arguments);
    } else if (type.value == 'test') {
      fire(arguments);
    }
  }

  @override
  String get packageName => 'Demo1Package';

  @override
  List<String> get registerEvents => ['test1', 'test'];
}
